{"version":3,"file":"color_picker.map.js","names":["BX","namespace","Landing","UI","Tool","ColorPicker","button","onChange","this","picker","bindElement","layout","popupOptions","getDefaultPopupOptions","onColorSelected","delegate","colors","getDefaultColors","onChangeHandler","pickerWindow","getPopupWindow","contextDocument","document","range","createRange","activePickers","add","angle","position","top","left","zIndex","overlay","backgroundColor","opacity","Collection","BaseCollection","hideAll","forEach","hide","map","item","index","arr","row","prototype","adjustPosition","DOM","read","pickerRect","popupContainer","getBoundingClientRect","parentRect","parentNode","offsetLeft","Math","abs","width","props","buttonRect","bottom","buttonPos","pos","Main","getInstance","isControlsExternal","write","prop","style","bind","show","open","getSelection","getRangeAt","close","isShown","color","removeAllRanges","addRange","type","isFunction","setContextDocument","nodeType","Node","DOCUMENT_NODE"],"sources":["color_picker.js"],"mappings":"CAAC,WACA,aAEAA,GAAGC,UAAU,sBAYbD,GAAGE,QAAQC,GAAGC,KAAKC,YAAc,SAASC,EAAQC,GAEjDC,KAAKC,OAAS,IAAIT,GAAGK,YAAY,CAChCK,YAAaJ,EAAOK,OACpBC,aAAcZ,GAAGE,QAAQC,GAAGC,KAAKC,YAAYQ,uBAAuBP,GACpEQ,gBAAiBd,GAAGe,SAASP,KAAKM,gBAAiBN,MACnDQ,OAAQhB,GAAGE,QAAQC,GAAGC,KAAKC,YAAYY,qBAExCT,KAAKF,OAASA,EACdE,KAAKU,gBAAkBX,EACvBC,KAAKW,aAAeX,KAAKC,OAAOW,iBAChCZ,KAAKa,gBAAkBC,SACvBd,KAAKe,MAAQf,KAAKa,gBAAgBG,cAClCxB,GAAGE,QAAQC,GAAGC,KAAKC,YAAYoB,cAAcC,IAAIlB,KAClD,EAOAR,GAAGE,QAAQC,GAAGC,KAAKC,YAAYQ,uBAAyB,SAASP,GAEhE,MAAO,CACNqB,MAAO,MACPC,SAAU,CAACC,IAAK,EAAGC,KAAM,GACzBC,QAAS,IACTC,QAAS,CAAEC,gBAAiB,UAAWC,QAAS,IAElD,EASAlC,GAAGE,QAAQC,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